no entiendo algoritmo

join shbcf.ru